local nya__jueqing = fk.CreateSkill {

  name = "nya__jueqing",

  tags = {  },

}



nya__jueqing:addEffect(fk.PreDamage, {
  name = "nya__jueqing",
  anim_type = "offensive",
  events = {fk.PreDamage},
  can_trigger = function(self, event, target, player, data)
    return target == player and player:hasSkill(nya__jueqing.name)
  end,
  on_cost = function(self, event, target, player, data)
    return true
  end,
  on_use = function(self, event, target, player, data)
    local room = player.room
    if room:askForSkillInvoke(player, nya__jueqing.name, nil, "#nya__jueqing-invoke::"..data.to.id..":"..data.damage) then
      room:loseHp(player, data.damage, nya__jueqing.name)
      data.damage = data.damage * 2
    end
    room:loseHp(data.to, data.damage, nya__jueqing.name)
    return true
  end,
})

return nya__jueqing